package com.ruoyi.project.jiaqin.advertplatform.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 平台投放视频、文章广告对象 jiaqin_advert_platform
 *
 * @author LCL
 * @date 2022-01-08
 */
public class JiaqinAdvertPlatform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 广告类型：1-个人名片 2-企业名片 3-供应 4-商城商品 5-文本广告 */
    @Excel(name = "广告类型：1-个人名片 2-企业名片 3-供应 4-商城商品 5-文本广告")
    private Integer type;

    /** 投放位置相关ID */
    @Excel(name = "投放位置相关ID")
    private String resId;

    /** 投放位置名 */
    @Excel(name = "投放位置名")
    private String resName;

    /** 广告标题 */
    @Excel(name = "广告标题")
    private String title;

    /** 广告图片 */
    @Excel(name = "广告图片")
    private String imgUrl;

    /** 广告价格（商城商品） */
    @Excel(name = "广告价格", readConverterExp = "商=城商品")
    private String price;

    /** 跳转链接 */
    @Excel(name = "跳转链接")
    private String jumpLink;

    /** 广告内容(富文本) */
    @Excel(name = "广告内容(富文本)")
    private String content;

    /** 状态：0-隐藏 1-显示 */
    @Excel(name = "状态：0-隐藏 1-显示")
    private Integer status;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 删除标记：0-正常 1-删除 */
    private Integer delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setResId(String resId)
    {
        this.resId = resId;
    }

    public String getResId()
    {
        return resId;
    }
    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setJumpLink(String jumpLink)
    {
        this.jumpLink = jumpLink;
    }

    public String getJumpLink()
    {
        return jumpLink;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("resId", getResId())
            .append("resName", getResName())
            .append("title", getTitle())
            .append("imgUrl", getImgUrl())
            .append("price", getPrice())
            .append("jumpLink", getJumpLink())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
